namespace UmSoft.SharePoint.Integration._1Cv77
{
    using System;
    using UmSoft.SharePoint.Integration._1Cv77;

    public class V7Enum : V7Object
    {
        public V7Enum(V7Object v7Object) : base(v7Object)
        {
        }
        public override string ToString()
        {
            return this.InvokeMethod("Вид", new object[0]).ToString();

        }
        public int Count
        {
            get
            {
                return Convert.ToInt32(base.InvokeMethod("КоличествоЗначений",
                        new object[0]));
            }
        }
        public V7EnumElement this[int number]
        {
            get
            {
                return new V7EnumElement(this.InvokeMethod("ЗначениеПоНомеру", new object[] { (double)(number + 1) }) as V7Object);

            }
        }
        public V7EnumElement this[string name]
        {
            get
            {
                return base.GetObject<UmSoft.SharePoint.Integration._1Cv77.V7EnumElement>((base.InvokeMethod("ЗначениеПоИдентификатору",
                        new object[] {
                                name}) as V7Object));
            }
        }
    }
}
